﻿using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.ShoppingMall
{
    [SugarTable]
    public class ShoppingMallProductGroupActivity
    { 
        /// <summary>
        /// 拼团活动UUID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; }

        /// <summary>
        /// 商品UUID
        /// </summary>
        public Guid ShoppingMallProductUUID { get; set; }

        /// <summary>
        /// 成团人数
        /// </summary>
        public int GroupCount { get; set; } = 2;

        /// <summary>
        /// 最大成团人数
        /// </summary>
        public int MaxGroupCount { get; set; } = 10000;

        /// <summary>
        /// 活动是否开启
        /// </summary>
        public Status Status { get; set; } = Status.Enable;

        /// <summary>
        /// 删除标记
        /// </summary>
        public Status IsDeleted { get; set; } = Status.Disable;

        /// <summary>
        /// 拼团结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        public DateTime CreateTime { get; set; } = DateTime.Now;
        public Guid CreateUserUUID { get; set; }
        public DateTime UpdateTime { get; set; } = DateTime.Now;
        public Guid UpdateUserUUID { get; set; }
    }
}
